package com.xuetang9.t9.xinhuaxia.mappers;

import com.xuetang9.t9.xinhuaxia.beans.SocialCollection;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.ResultType;
import org.apache.ibatis.annotations.Select;
import tk.mybatis.mapper.common.Mapper;

public interface SocialCollectionMapper extends Mapper<SocialCollection> {

    @Select("SELECT count(*) FROM social_collection WHERE p_id=#{p_id}")
    @ResultType(Integer.class)
    int getCollectionCountByPid(@Param("p_id")int p_id);
}